From: Brion Vibber Date: Thu, 11 Dec 2003 05:52:15 +0000 (+0000) Subject: (fix regression) Don't select the edit box on preview; this interferes with seeing... X-Git-Tag: 1.3.0beta1~1264 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=fa6359877aee9089d52a19ce0bf8b5216047ee44;p=lhc%2Fweb%2Fwiklou.git (fix regression) Don't select the edit box on preview; this interferes with seeing what's going on. --- diff --git a/includes/EditPage.php b/includes/EditPage.php index ef6f6afa29..dd2bd08dad 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -288,7 +288,10 @@ class EditPage { $editsummary="{$summary}:
"; } - $wgOut->setOnloadHandler( "document.editform.wpTextbox1.focus()" ); + if( $_GET["action"] == "edit" ) { + # Don't select the edit box on preview; this interferes with seeing what's going on. + $wgOut->setOnloadHandler( "document.editform.wpTextbox1.focus()" ); + } $wgOut->addHTML( "